package com.wuseguang.springcloud.controller;


import com.wuseguang.springcloud.service.ImportAndExportSchoolsTimeService;
import com.wuseguang.springcloud.util.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学生进出校时长记录表 前端控制器
 * </p>
 *
 * @author
 * @since 2020-05-08
 */
@RestController
@RequestMapping("/brands")
public class ImportAndExportSchoolsTimeController {


    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private ImportAndExportSchoolsTimeService importAndExportSchoolsTimeServiceImpl;


    /**
     * 查询班级的进出校信息
     *
     * @param deviceid
     * @return
     */
    @RequestMapping("/findInAndOutOfSchool")
    public Result findInAndOutOfSchool(@RequestParam(value = "deviceid") String deviceid) {
        logger.info("查询班级的进出校信息 deviceid= {}", deviceid);
        return importAndExportSchoolsTimeServiceImpl.findInAndOutOfSchool(deviceid);
    }

}

